import request from '@/utils/request'
export default {
    //1 用户列表（条件查询分页）
    //current当前页 limit每页记录数 UserQuery条件对象
    getUserListPage(current,limit,userQuery) {
        return request({
            url: `/admin/user/pageTourist/${current}/${limit}`,
            method: 'post',
            data: userQuery
          })
    },
    //根据id查找用户
    getUserById(id) {
        return request({
            url: `/admin/user/getUserById/${id}`,
            method: 'get'
          })
    },
    updateUser(user) {
        return request({
          url: `/admin/user/updateUserById`,
          method: 'post',
          data: user
        })
    },
    //删除用户
    deleteUserId(id) {
        return request({
            url: `/admin/user/deletebyid/${id}`,
            method: 'post'
          })
    }
}
